#include "NovelConfig.h"

NovelConfig::NovelConfig()
{
//  m_maxArticleID = 0;
//  m_maxChapterID = 0;
}

NovelConfig* NovelConfig::getInstance()
{
  static NovelConfig* singleton = new NovelConfig();
  return singleton;
}

void NovelConfig::getSortID(const  std::string& sortName, std::string& sortID)
{
  sortID = "1";
}

unsigned int NovelConfig::getMaxArticleID()
{
  ++m_maxArticleID;
  return m_maxArticleID -1;
}

unsigned int NovelConfig::getMaxChapterID()
{
  ++m_maxChapterID;
  return m_maxChapterID - 1 ;
}

unsigned int NovelConfig::getMaxAttachID()
{
  ++m_maxAttachID;
  return m_maxAttachID -1;
}
